import request from '@/utils/request'

// 查询项目合同列表
export function listOriginate(query) {
  return request({
    url: '/sponsor/originate/list',
    method: 'get',
    params: query
  })
}

// 查询项目合同详细
export function getOriginate(id) {
  return request({
    url: '/sponsor/originate/' + id,
    method: 'get'
  })
}

// 新增项目合同
export function addOriginate(data) {
  return request({
    url: '/sponsor/originate',
    method: 'post',
    data: data
  })
}

// 修改项目合同
export function updateOriginate(data) {
  return request({
    url: '/sponsor/originate',
    method: 'put',
    data: data
  })
}

// 删除项目合同
export function delOriginate(id) {
  return request({
    url: '/sponsor/originate/' + id,
    method: 'delete'
  })
}
